/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ihmprojet.view.renderer;

import ihmprojet.core.model.Arrete;
import ihmprojet.core.model.ArreteOperateur;
import org.apache.commons.collections15.Transformer;

/**
 *
 * @author Remi PIOTAIX <remi.piotaix@gmail.com>
 */
public class EdgeLabelTransformer implements Transformer<Arrete, String> {

    @Override
    public String transform(Arrete i) {
        if (i instanceof ArreteOperateur) {
            return ((ArreteOperateur) i).getNom();
        } else {
            return "";
        }


    }
}
